import threading
import time

from main_func_thread import main_func_thread
from comm.serial_thread import serial_thread
from ui import ui_util

app, ui, MainWindow = ui_util.init_App()

main_func_thread = main_func_thread(ui)
main_func_thread.setDaemon(True)
main_func_thread.start()

serial_thread = serial_thread(ui)
serial_thread.setDaemon(True)
serial_thread.start()

ui_util.start(app, MainWindow)